<!doctype HTML>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />
<title>ThinkPHP更改过的文件</title>
<style>
body {
color: #333;
font-family: sans-serif;
font-size: 12pt;
line-height: 170%;
padding: 0 30px 0 270px;
}

header .banner {
margin: 0 0 1em 0;
}

header .banner, nav .banner {
color: #777;
font-size: 10pt;
font-weight: bold;
}

header h1 {
background: #0c3;
border-radius: 4px;
color: #fff;
font-size: 24pt;
margin: 0;
padding: 1.2em 0;
text-align: center;
}

nav {
font-size: 10pt;
overflow-x: auto;
overflow-y: auto;
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 240px;
}

nav .menubar {
border-bottom: solid 1px #ccc;
display: none;
height: 48px;
line-height: 48px;
padding: 0 10px;
}

nav .button {
background: #777;
border: 1px solid #333;
color: #fff;
font-size: 10pt;
font-weight: bold;
padding: 8px;
border-radius: 4px;
}

nav ul {
padding: 0 0 0 10px;
}

nav ul a {
color: #333;
text-decoration: none;
}

nav ul a:hover {
text-decoration: underline;
}

nav li {
line-height: 180%;
list-style: none;
margin: 0;
padding: 0;
}

nav .level2 {
font-size: 11pt;
font-weight: bold;
}

nav .level3 {
padding-left: 1em;
}

nav .level3:before { 
content: "» ";
}

nav .level4 {
padding-left: 2em;
}

nav .level4:before {
content: "› ";
}

article h2 {
border-bottom: dotted 1px #777;
font-size: 20pt;
line-height: 100%;
margin: 2em 0 1em 0;
padding: 0 0 0.3em 0;
}

article h3 {
font-size: 12pt;
height:50px;
line-height: 50px;
margin: 2em 0 1em 0;
padding-left:20px;
background:#cccccc;
}

article h4 {
font-size: 12pt;
font-style:italic;
font-weight: normal;
line-height: 100%;
margin: 1.2em 0 1em 0;
padding: 0;
}

article p {
margin: 1em 0;
}

article p code {
background: #eee;
border: 1px solid #ccc;
}

article p strong {
color: #f00;
}

article pre {
background: #eee;
border-left: solid 2px #3c0;
font-size: 10pt;
margin: 1em 0;
padding: 0 0 0 1em;
overflow-x: auto;
overflow-y: padding;
}

article blockquote {
background: #fff;
border: dashed 1px #777;
border-left: solid 2px #777;
color: #000;
margin: 0;
padding: 0 0 0 1em;
}

article ul, article ol {
padding-left: 2em;
}

article img{height:400px;width:auto;}

footer {
border-top: 1px solid #ccc;
font-size: 10pt;
margin-top: 4em;
}

@media (max-width: 768px) {

body {
padding: 0 10px 0 230px;
}

nav {
width: 230px;
}

}

@media (max-width: 480px) {

body {
padding: 64px 10px 0 10px;
}

header .banner {
display: none;
}

nav {
position: absolute;
width: 100%;
}

nav .menubar {
display: block;
}

nav .banner {
float: right;
}

nav ul {
background: #fff;
display: none;
font-size: 14pt;
margin: 0;
padding: 0 0 0 8px;
}

nav .level2 {
font-size: 16pt;
font-weight: bold;
}

nav li {
line-height: 240%;
}

.index nav ul {
display: block;
}

.index article {
display: none;
}

}
</style>
<script>
  (function (tags) {
    var i = 0, len = tags.length;

    for (; i < len; ++i) {
        document.createElement(tags[i]);
    }
  }([ 'header', 'nav', 'article', 'footer' ]));
</script>
</head>
<body>
<header>
<h1 id="thinkphp-">ThinkPHP更改过的文件</h1>

</header>
<nav>
<div class="menubar">
<a class="button">&#9776;&nbsp;索引</a>
</div>
<ul>
<li class="level2"><a href="#1">ThinkPHP更改的内容</a></li><li class="level3"><a href="#1.1">function.php</a></li><li class="level3"><a href="#1.2">smtp.class.php</a></li><li class="level3"><a href="#1.3">Controller.class.php</a></li><li class="level3"><a href="#1.4">Page.class.php</a></li><li class="level3"><a href="#1.5">dispatch_jump.tpl</a></li></ul>

</nav>
<article>
<h2 id="1">ThinkPHP更改的内容</h2>
<h3 id="1.1">function.php</h3>
<p>位置：/ThinkPHP/Common/function.php</p>
<p>再最下边增加代码</p>
<pre><code>function msubstr($str, $start=0, $length, $charset=&quot;utf-8&quot;, $suffix=true)
{
    if(function_exists(&quot;mb_substr&quot;)){
          if($suffix)
          return mb_substr($str, $start, $length, $charset).&quot;...&quot;;
          else
               return mb_substr($str, $start, $length, $charset);
    }
     elseif(function_exists(&#39;iconv_substr&#39;)) {
         if($suffix)
              return iconv_substr($str,$start,$length,$charset).&quot;...&quot;;
         else
              return iconv_substr($str,$start,$length,$charset);
     }
     $re[&#39;utf-8&#39;]   = &quot;/[x01-x7f]|[xc2-xdf][x80-xbf]|[xe0-xef]
              [x80-xbf]{2}|[xf0-xff][x80-xbf]{3}/&quot;;
     $re[&#39;gb2312&#39;] = &quot;/[x01-x7f]|[xb0-xf7][xa0-xfe]/&quot;;
     $re[&#39;gbk&#39;]    = &quot;/[x01-x7f]|[x81-xfe][x40-xfe]/&quot;;
     $re[&#39;big5&#39;]   = &quot;/[x01-x7f]|[x81-xfe]([x40-x7e]|xa1-xfe])/&quot;;
     preg_match_all($re[$charset], $str, $match);
     $slice = join(&quot;&quot;,array_slice($match[0], $start, $length));
     if($suffix) return $slice.&quot;…&quot;;
     return $slice;
}</code></pre>
<h3 id="1.2">smtp.class.php</h3>
<p>位置：/ThinkPHP/Library/Behavior/Org/Util/smtp.class.php  </p>
<p>最新版本无这个文件，复制上去！</p>
<h3 id="1.3">Controller.class.php</h3>
<p>位置：/ThinkPHP/Library/Think/Controller.class.php</p>
<p>在第23行增加  <code>public $SiteInfo;</code></p>
<p>作用：暂不知道</p>
<h3 id="1.4">Page.class.php</h3>
<p>位置：/ThinkPHP/Library/Think/Page.class.php</p>
<p>作用：更换为 bootstrap页码</p>
<p>1.</p>
<pre><code>$up_page = $up_row &gt; 0 ? &#39;&lt;a class=&quot;prev&quot; href=&quot;&#39; . $this-&gt;url($up_row) . &#39;&quot;&gt;&#39; . $this-&gt;config[&#39;prev&#39;] . &#39;&lt;/a&gt;&#39; : &#39;&#39;;</code></pre>
<p>更换为：</p>
<pre><code>$up_page = $up_row &gt; 0 ? &#39;&lt;li class = &quot;paginate_button previous&quot;&gt;&lt;a class=&quot;prev&quot; href=&quot;&#39; . $this-&gt;url($up_row) . &#39;&quot;&gt;&#39; . $this-&gt;config[&#39;prev&#39;] . &#39;&lt;/a&gt;&lt;/li&gt;&#39; : &#39;&#39;;</code></pre>
<p>2.</p>
<pre><code>$down_page = ($down_row &lt;= $this-&gt;totalPages) ? &#39;&lt;a class=&quot;next&quot; href=&quot;&#39; . $this-&gt;url($down_row) . &#39;&quot;&gt;&#39; . $this-&gt;config[&#39;next&#39;] . &#39;&lt;/a&gt;&#39; : &#39;&#39;;</code></pre>
<p>更换为：</p>
<pre><code>$down_page = ($down_row &lt;= $this-&gt;totalPages) ? &#39;&lt;li class= &quot;paginate_button next&quot;&gt;&lt;a class=&quot;next&quot; href=&quot;&#39; . $this-&gt;url($down_row) . &#39;&quot;&gt;&#39; . $this-&gt;config[&#39;next&#39;] . &#39;&lt;/a&gt;&lt;/li&gt;&#39; : &#39;&#39;;</code></pre>
<p>3.</p>
<pre><code>$the_first = &#39;&lt;a class=&quot;first&quot; href=&quot;&#39; . $this-&gt;url(1) . &#39;&quot;&gt;&#39; . $this-&gt;config[&#39;first&#39;] . &#39;&lt;/a&gt;&#39;;</code></pre>
<p>更换为：</p>
<pre><code>$the_first = &#39;&lt;li class=&quot;paginate_button &quot;&gt;&lt;a class=&quot;first&quot; href=&quot;&#39; . $this-&gt;url(1) . &#39;&quot;&gt;&#39; . $this-&gt;config[&#39;first&#39;] . &#39;&lt;/a&gt;&lt;/li&gt;&#39;;</code></pre>
<ol>
<li><p> $the_end = &#39;<a class="end" href="' . $this->url($this->totalPages) . '">&#39; . $this-&gt;config[&#39;last&#39;] . &#39;</a>&#39;;</p>
</li>
</ol>
<p>更换为：</p>
<pre><code>$the_end = &#39;&lt;li class=&quot;paginate_button &quot;&gt;&lt;a class=&quot;end&quot; href=&quot;&#39; . $this-&gt;url($this-&gt;totalPages) . &#39;&quot;&gt;&#39; . $this-&gt;config[&#39;last&#39;] . &#39;&lt;/a&gt;&lt;/li&gt;&#39;;</code></pre>
<p>5.</p>
<pre><code>$link_page .= &#39;&lt;a class=&quot;num&quot; href=&quot;&#39; . $this-&gt;url($page) . &#39;&quot;&gt;&#39; . $page . &#39;&lt;/a&gt;&#39;;</code></pre>
<p>更换为：</p>
<pre><code>$link_page .= &#39;&lt;li class=&quot;paginate_button &quot;&gt;&lt;a class=&quot;num&quot; href=&quot;&#39; . $this-&gt;url($page) . &#39;&quot;&gt;&#39; . $page . &#39;&lt;/a&gt;&lt;/li&gt;&#39;;</code></pre>
<p>6.</p>
<pre><code>$link_page .= &#39;&lt;span class=&quot;current&quot;&gt;&#39; . $page . &#39;&lt;/span&gt;&#39;;</code></pre>
<p>更换为：</p>
<pre><code>$link_page .= &#39;&lt;li class=&quot;paginate_button active&quot;&gt;&lt;a&gt;&#39; . $page . &#39;&lt;/a&gt;&lt;/li&gt;&#39;;</code></pre>
<p>7.</p>
<pre><code> return &quot;&lt;div&gt;{$page_str}&lt;/div&gt;&quot;;</code></pre>
<p>更换为：</p>
<pre><code> return &quot;&lt;div class = &#39;dataTables_paginate paging_simple_numbers&#39;&gt;&lt;ul class = &#39;pagination&#39;&gt;{$page_str}&lt;/ul&gt;&lt;/div&gt;&quot;;</code></pre>
<h3 id="1.5">dispatch_jump.tpl</h3>
<p>位置：/ThinkPHP/Tpl/dispatch_jump.tpl<br>作用：使用 sweetalert.css友情提示  </p>
<p>原文件为：</p>
<pre><code>&lt;?php
    if(C(&#39;LAYOUT_ON&#39;)) {
        echo &#39;{__NOLAYOUT__}&#39;;
    }
?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;跳转提示&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
*{ padding: 0; margin: 0; }
body{ background: #fff; font-family: &#39;微软雅黑&#39;; color: #333; font-size: 16px; }
.system-message{ padding: 24px 48px; }
.system-message h1{ font-size: 100px; font-weight: normal; line-height: 120px; margin-bottom: 12px; }
.system-message .jump{ padding-top: 10px}
.system-message .jump a{ color: #333;}
.system-message .success,.system-message .error{ line-height: 1.8em; font-size: 36px }
.system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display:none}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;system-message&quot;&gt;
&lt;?php if(isset($message)) {?&gt;
&lt;h1&gt;:)&lt;/h1&gt;
&lt;p class=&quot;success&quot;&gt;&lt;?php echo($message); ?&gt;&lt;/p&gt;
&lt;?php }else{?&gt;
&lt;h1&gt;:(&lt;/h1&gt;
&lt;p class=&quot;error&quot;&gt;&lt;?php echo($error); ?&gt;&lt;/p&gt;
&lt;?php }?&gt;
&lt;p class=&quot;detail&quot;&gt;&lt;/p&gt;
&lt;p class=&quot;jump&quot;&gt;
页面自动 &lt;a id=&quot;href&quot; href=&quot;&lt;?php echo($jumpUrl); ?&gt;&quot;&gt;跳转&lt;/a&gt; 等待时间： &lt;b id=&quot;wait&quot;&gt;&lt;?php echo($waitSecond); ?&gt;&lt;/b&gt;
&lt;/p&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
(function(){
var wait = document.getElementById(&#39;wait&#39;),href = document.getElementById(&#39;href&#39;).href;
var interval = setInterval(function(){
    var time = --wait.innerHTML;
    if(time &lt;= 0) {
        location.href = href;
        clearInterval(interval);
    };
}, 1000);
})();
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
<p>更换为：</p>
<pre><code>&lt;?php
if(C(&#39;LAYOUT_ON&#39;)) {
    echo &#39;{__NOLAYOUT__}&#39;;
}
?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
    &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
    &lt;title&gt;操作提示&lt;/title&gt;
    &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;//cdn.bootcss.com/sweetalert/1.1.3/sweetalert.min.css&quot;/&gt;
    &lt;script src=&quot;//cdn.bootcss.com/jquery/1.11.0/jquery.min.js&quot;&gt;&lt;/script&gt;
    &lt;script&gt;
        !function(e,t,n){&quot;use strict&quot;;!function o(e,t,n){function a(s,l){if(!t[s]){if(!e[s]){var i=&quot;function&quot;==typeof require&amp;&amp;require;if(!l&amp;&amp;i)return i(s,!0);if(r)return r(s,!0);var u=new Error(&quot;Cannot find module &#39;&quot;+s+&quot;&#39;&quot;);throw u.code=&quot;MODULE_NOT_FOUND&quot;,u}var c=t[s]={exports:{}};e[s][0].call(c.exports,function(t){var n=e[s][1][t];return a(n?n:t)},c,c.exports,o,e,t,n)}return t[s].exports}for(var r=&quot;function&quot;==typeof require&amp;&amp;require,s=0;s&lt;n.length;s++)a(n[s]);return a}({1:[function(o){var a,r,s,l,i=function(e){return e&amp;&amp;e.__esModule?e:{&quot;default&quot;:e}},u=o(&quot;./modules/handle-dom&quot;),c=o(&quot;./modules/utils&quot;),d=o(&quot;./modules/handle-swal-dom&quot;),f=o(&quot;./modules/handle-click&quot;),p=o(&quot;./modules/handle-key&quot;),m=i(p),v=o(&quot;./modules/default-params&quot;),y=i(v),h=o(&quot;./modules/set-params&quot;),g=i(h);s=l=function(){function o(e){var t=s;return t[e]===n?y[&quot;default&quot;][e]:t[e]}var s=arguments[0];if(u.addClass(t.body,&quot;stop-scrolling&quot;),d.resetInput(),s===n)return c.logStr(&quot;SweetAlert expects at least 1 attribute!&quot;),!1;var l=c.extend({},y[&quot;default&quot;]);switch(typeof s){case&quot;string&quot;:l.title=s,l.text=arguments[1]||&quot;&quot;,l.type=arguments[2]||&quot;&quot;;break;case&quot;object&quot;:if(s.title===n)return c.logStr(&#39;Missing &quot;title&quot; argument!&#39;),!1;l.title=s.title;for(var i in y[&quot;default&quot;])l[i]=o(i);l.confirmButtonText=l.showCancelButton?&quot;Confirm&quot;:y[&quot;default&quot;].confirmButtonText,l.confirmButtonText=o(&quot;confirmButtonText&quot;),l.doneFunction=arguments[1]||null;break;default:return c.logStr(&#39;Unexpected type of argument! Expected &quot;string&quot; or &quot;object&quot;, got &#39;+typeof s),!1}g[&quot;default&quot;](l),d.fixVerticalPosition(),d.openModal(arguments[1]);for(var p=d.getModal(),v=p.querySelectorAll(&quot;button&quot;),h=[&quot;onclick&quot;,&quot;onmouseover&quot;,&quot;onmouseout&quot;,&quot;onmousedown&quot;,&quot;onmouseup&quot;,&quot;onfocus&quot;],b=function(e){return f.handleButton(e,l,p)},w=0;w&lt;v.length;w++)for(var C=0;C&lt;h.length;C++){var S=h[C];v[w][S]=b}d.getOverlay().onclick=b,a=e.onkeydown;var x=function(e){return m[&quot;default&quot;](e,l,p)};e.onkeydown=x,e.onfocus=function(){setTimeout(function(){r!==n&amp;&amp;(r.focus(),r=n)},0)}},s.setDefaults=l.setDefaults=function(e){if(!e)throw new Error(&quot;userParams is required&quot;);if(&quot;object&quot;!=typeof e)throw new Error(&quot;userParams has to be a object&quot;);c.extend(y[&quot;default&quot;],e)},s.close=l.close=function(){var o=d.getModal();u.fadeOut(d.getOverlay(),5),u.fadeOut(o,5),u.removeClass(o,&quot;showSweetAlert&quot;),u.addClass(o,&quot;hideSweetAlert&quot;),u.removeClass(o,&quot;visible&quot;);var s=o.querySelector(&quot;.sa-icon.sa-success&quot;);u.removeClass(s,&quot;animate&quot;),u.removeClass(s.querySelector(&quot;.sa-tip&quot;),&quot;animateSuccessTip&quot;),u.removeClass(s.querySelector(&quot;.sa-long&quot;),&quot;animateSuccessLong&quot;);var l=o.querySelector(&quot;.sa-icon.sa-error&quot;);u.removeClass(l,&quot;animateErrorIcon&quot;),u.removeClass(l.querySelector(&quot;.sa-x-mark&quot;),&quot;animateXMark&quot;);var i=o.querySelector(&quot;.sa-icon.sa-warning&quot;);return u.removeClass(i,&quot;pulseWarning&quot;),u.removeClass(i.querySelector(&quot;.sa-body&quot;),&quot;pulseWarningIns&quot;),u.removeClass(i.querySelector(&quot;.sa-dot&quot;),&quot;pulseWarningIns&quot;),setTimeout(function(){var e=o.getAttribute(&quot;data-custom-class&quot;);u.removeClass(o,e)},300),u.removeClass(t.body,&quot;stop-scrolling&quot;),e.onkeydown=a,e.previousActiveElement&amp;&amp;e.previousActiveElement.focus(),r=n,clearTimeout(o.timeout),!0},s.showInputError=l.showInputError=function(e){var t=d.getModal(),n=t.querySelector(&quot;.sa-input-error&quot;);u.addClass(n,&quot;show&quot;);var o=t.querySelector(&quot;.sa-error-container&quot;);u.addClass(o,&quot;show&quot;),o.querySelector(&quot;p&quot;).innerHTML=e,t.querySelector(&quot;input&quot;).focus()},s.resetInputError=l.resetInputError=function(e){if(e&amp;&amp;13===e.keyCode)return!1;var t=d.getModal(),n=t.querySelector(&quot;.sa-input-error&quot;);u.removeClass(n,&quot;show&quot;);var o=t.querySelector(&quot;.sa-error-container&quot;);u.removeClass(o,&quot;show&quot;)},&quot;undefined&quot;!=typeof e?e.sweetAlert=e.swal=s:c.logStr(&quot;SweetAlert is a frontend module!&quot;)},{&quot;./modules/default-params&quot;:2,&quot;./modules/handle-click&quot;:3,&quot;./modules/handle-dom&quot;:4,&quot;./modules/handle-key&quot;:5,&quot;./modules/handle-swal-dom&quot;:6,&quot;./modules/set-params&quot;:8,&quot;./modules/utils&quot;:9}],2:[function(e,t,n){Object.defineProperty(n,&quot;__esModule&quot;,{value:!0});var o={title:&quot;&quot;,text:&quot;&quot;,type:null,allowOutsideClick:!1,showConfirmButton:!0,showCancelButton:!1,closeOnConfirm:!0,closeOnCancel:!0,confirmButtonText:&quot;确定&quot;,confirmButtonColor:&quot;#AEDEF4&quot;,cancelButtonText:&quot;取消&quot;,imageUrl:null,imageSize:null,timer:null,customClass:&quot;&quot;,html:!1,animation:!0,allowEscapeKey:!0,inputType:&quot;text&quot;,inputPlaceholder:&quot;&quot;,inputValue:&quot;&quot;};n[&quot;default&quot;]=o,t.exports=n[&quot;default&quot;]},{}],3:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0});var a=t(&quot;./utils&quot;),r=(t(&quot;./handle-swal-dom&quot;),t(&quot;./handle-dom&quot;)),s=function(t,n,o){function s(e){m&amp;&amp;n.confirmButtonColor&amp;&amp;(p.style.backgroundColor=e)}var u,c,d,f=t||e.event,p=f.target||f.srcElement,m=-1!==p.className.indexOf(&quot;confirm&quot;),v=-1!==p.className.indexOf(&quot;sweet-overlay&quot;),y=r.hasClass(o,&quot;visible&quot;),h=n.doneFunction&amp;&amp;&quot;true&quot;===o.getAttribute(&quot;data-has-done-function&quot;);switch(m&amp;&amp;n.confirmButtonColor&amp;&amp;(u=n.confirmButtonColor,c=a.colorLuminance(u,-.04),d=a.colorLuminance(u,-.14)),f.type){case&quot;mouseover&quot;:s(c);break;case&quot;mouseout&quot;:s(u);break;case&quot;mousedown&quot;:s(d);break;case&quot;mouseup&quot;:s(c);break;case&quot;focus&quot;:var g=o.querySelector(&quot;button.confirm&quot;),b=o.querySelector(&quot;button.cancel&quot;);m?b.style.boxShadow=&quot;none&quot;:g.style.boxShadow=&quot;none&quot;;break;case&quot;click&quot;:var w=o===p,C=r.isDescendant(o,p);if(!w&amp;&amp;!C&amp;&amp;y&amp;&amp;!n.allowOutsideClick)break;m&amp;&amp;h&amp;&amp;y?l(o,n):h&amp;&amp;y||v?i(o,n):r.isDescendant(o,p)&amp;&amp;&quot;BUTTON&quot;===p.tagName&amp;&amp;sweetAlert.close()}},l=function(e,t){var n=!0;r.hasClass(e,&quot;show-input&quot;)&amp;&amp;(n=e.querySelector(&quot;input&quot;).value,n||(n=&quot;&quot;)),t.doneFunction(n),t.closeOnConfirm&amp;&amp;sweetAlert.close()},i=function(e,t){var n=String(t.doneFunction).replace(/\s/g,&quot;&quot;),o=&quot;function(&quot;===n.substring(0,9)&amp;&amp;&quot;)&quot;!==n.substring(9,10);o&amp;&amp;t.doneFunction(!1),t.closeOnCancel&amp;&amp;sweetAlert.close()};o[&quot;default&quot;]={handleButton:s,handleConfirm:l,handleCancel:i},n.exports=o[&quot;default&quot;]},{&quot;./handle-dom&quot;:4,&quot;./handle-swal-dom&quot;:6,&quot;./utils&quot;:9}],4:[function(n,o,a){Object.defineProperty(a,&quot;__esModule&quot;,{value:!0});var r=function(e,t){return new RegExp(&quot; &quot;+t+&quot; &quot;).test(&quot; &quot;+e.className+&quot; &quot;)},s=function(e,t){r(e,t)||(e.className+=&quot; &quot;+t)},l=function(e,t){var n=&quot; &quot;+e.className.replace(/[\t\r\n]/g,&quot; &quot;)+&quot; &quot;;if(r(e,t)){for(;n.indexOf(&quot; &quot;+t+&quot; &quot;)&gt;=0;)n=n.replace(&quot; &quot;+t+&quot; &quot;,&quot; &quot;);e.className=n.replace(/^\s+|\s+$/g,&quot;&quot;)}},i=function(e){var n=t.createElement(&quot;div&quot;);return n.appendChild(t.createTextNode(e)),n.innerHTML},u=function(e){e.style.opacity=&quot;&quot;,e.style.display=&quot;block&quot;},c=function(e){if(e&amp;&amp;!e.length)return u(e);for(var t=0;t&lt;e.length;++t)u(e[t])},d=function(e){e.style.opacity=&quot;&quot;,e.style.display=&quot;none&quot;},f=function(e){if(e&amp;&amp;!e.length)return d(e);for(var t=0;t&lt;e.length;++t)d(e[t])},p=function(e,t){for(var n=t.parentNode;null!==n;){if(n===e)return!0;n=n.parentNode}return!1},m=function(e){e.style.left=&quot;-9999px&quot;,e.style.display=&quot;block&quot;;var t,n=e.clientHeight;return t=&quot;undefined&quot;!=typeof getComputedStyle?parseInt(getComputedStyle(e).getPropertyValue(&quot;padding-top&quot;),10):parseInt(e.currentStyle.padding),e.style.left=&quot;&quot;,e.style.display=&quot;none&quot;,&quot;-&quot;+parseInt((n+t)/2)+&quot;px&quot;},v=function(e,t){if(+e.style.opacity&lt;1){t=t||16,e.style.opacity=0,e.style.display=&quot;block&quot;;var n=+new Date,o=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.style.opacity=+e.style.opacity+(new Date-n)/100,n=+new Date,+e.style.opacity&lt;1&amp;&amp;setTimeout(o,t)});o()}e.style.display=&quot;block&quot;},y=function(e,t){t=t||16,e.style.opacity=1;var n=+new Date,o=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.style.opacity=+e.style.opacity-(new Date-n)/100,n=+new Date,+e.style.opacity&gt;0?setTimeout(o,t):e.style.display=&quot;none&quot;});o()},h=function(n){if(&quot;function&quot;==typeof MouseEvent){var o=new MouseEvent(&quot;click&quot;,{view:e,bubbles:!1,cancelable:!0});n.dispatchEvent(o)}else if(t.createEvent){var a=t.createEvent(&quot;MouseEvents&quot;);a.initEvent(&quot;click&quot;,!1,!1),n.dispatchEvent(a)}else t.createEventObject?n.fireEvent(&quot;onclick&quot;):&quot;function&quot;==typeof n.onclick&amp;&amp;n.onclick()},g=function(t){&quot;function&quot;==typeof t.stopPropagation?(t.stopPropagation(),t.preventDefault()):e.event&amp;&amp;e.event.hasOwnProperty(&quot;cancelBubble&quot;)&amp;&amp;(e.event.cancelBubble=!0)};a.hasClass=r,a.addClass=s,a.removeClass=l,a.escapeHtml=i,a._show=u,a.show=c,a._hide=d,a.hide=f,a.isDescendant=p,a.getTopMargin=m,a.fadeIn=v,a.fadeOut=y,a.fireClick=h,a.stopEventPropagation=g},{}],5:[function(t,o,a){Object.defineProperty(a,&quot;__esModule&quot;,{value:!0});var r=t(&quot;./handle-dom&quot;),s=t(&quot;./handle-swal-dom&quot;),l=function(t,o,a){var l=t||e.event,i=l.keyCode||l.which,u=a.querySelector(&quot;button.confirm&quot;),c=a.querySelector(&quot;button.cancel&quot;),d=a.querySelectorAll(&quot;button[tabindex]&quot;);if(-1!==[9,13,32,27].indexOf(i)){for(var f=l.target||l.srcElement,p=-1,m=0;m&lt;d.length;m++)if(f===d[m]){p=m;break}9===i?(f=-1===p?u:p===d.length-1?d[0]:d[p+1],r.stopEventPropagation(l),f.focus(),o.confirmButtonColor&amp;&amp;s.setFocusStyle(f,o.confirmButtonColor)):13===i?(&quot;INPUT&quot;===f.tagName&amp;&amp;(f=u,u.focus()),f=-1===p?u:n):27===i&amp;&amp;o.allowEscapeKey===!0?(f=c,r.fireClick(f,l)):f=n}};a[&quot;default&quot;]=l,o.exports=a[&quot;default&quot;]},{&quot;./handle-dom&quot;:4,&quot;./handle-swal-dom&quot;:6}],6:[function(n,o,a){var r=function(e){return e&amp;&amp;e.__esModule?e:{&quot;default&quot;:e}};Object.defineProperty(a,&quot;__esModule&quot;,{value:!0});var s=n(&quot;./utils&quot;),l=n(&quot;./handle-dom&quot;),i=n(&quot;./default-params&quot;),u=r(i),c=n(&quot;./injected-html&quot;),d=r(c),f=&quot;.sweet-alert&quot;,p=&quot;.sweet-overlay&quot;,m=function(){var e=t.createElement(&quot;div&quot;);for(e.innerHTML=d[&quot;default&quot;];e.firstChild;)t.body.appendChild(e.firstChild)},v=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=t.querySelector(f);return e||(m(),e=v()),e}),y=function(){var e=v();return e?e.querySelector(&quot;input&quot;):void 0},h=function(){return t.querySelector(p)},g=function(e,t){var n=s.hexToRgb(t);e.style.boxShadow=&quot;0 0 2px rgba(&quot;+n+&quot;, 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)&quot;},b=function(n){var o=v();l.fadeIn(h(),10),l.show(o),l.addClass(o,&quot;showSweetAlert&quot;),l.removeClass(o,&quot;hideSweetAlert&quot;),e.previousActiveElement=t.activeElement;var a=o.querySelector(&quot;button.confirm&quot;);a.focus(),setTimeout(function(){l.addClass(o,&quot;visible&quot;)},500);var r=o.getAttribute(&quot;data-timer&quot;);if(&quot;null&quot;!==r&amp;&amp;&quot;&quot;!==r){var s=n;o.timeout=setTimeout(function(){var e=(s||null)&amp;&amp;&quot;true&quot;===o.getAttribute(&quot;data-has-done-function&quot;);e?s(null):sweetAlert.close()},r)}},w=function(){var e=v(),t=y();l.removeClass(e,&quot;show-input&quot;),t.value=u[&quot;default&quot;].inputValue,t.setAttribute(&quot;type&quot;,u[&quot;default&quot;].inputType),t.setAttribute(&quot;placeholder&quot;,u[&quot;default&quot;].inputPlaceholder),C()},C=function(e){if(e&amp;&amp;13===e.keyCode)return!1;var t=v(),n=t.querySelector(&quot;.sa-input-error&quot;);l.removeClass(n,&quot;show&quot;);var o=t.querySelector(&quot;.sa-error-container&quot;);l.removeClass(o,&quot;show&quot;)},S=function(){var e=v();e.style.marginTop=l.getTopMargin(v())};a.sweetAlertInitialize=m,a.getModal=v,a.getOverlay=h,a.getInput=y,a.setFocusStyle=g,a.openModal=b,a.resetInput=w,a.resetInputError=C,a.fixVerticalPosition=S},{&quot;./default-params&quot;:2,&quot;./handle-dom&quot;:4,&quot;./injected-html&quot;:7,&quot;./utils&quot;:9}],7:[function(e,t,n){Object.defineProperty(n,&quot;__esModule&quot;,{value:!0});var o=&#39;&lt;div class=&quot;sweet-overlay&quot; tabIndex=&quot;-1&quot;&gt;&lt;/div&gt;&lt;div class=&quot;sweet-alert&quot;&gt;&lt;div class=&quot;sa-icon sa-error&quot;&gt;\n      &lt;span class=&quot;sa-x-mark&quot;&gt;\n        &lt;span class=&quot;sa-line sa-left&quot;&gt;&lt;/span&gt;\n        &lt;span class=&quot;sa-line sa-right&quot;&gt;&lt;/span&gt;\n      &lt;/span&gt;\n    &lt;/div&gt;&lt;div class=&quot;sa-icon sa-warning&quot;&gt;\n      &lt;span class=&quot;sa-body&quot;&gt;&lt;/span&gt;\n      &lt;span class=&quot;sa-dot&quot;&gt;&lt;/span&gt;\n    &lt;/div&gt;&lt;div class=&quot;sa-icon sa-info&quot;&gt;&lt;/div&gt;&lt;div class=&quot;sa-icon sa-success&quot;&gt;\n      &lt;span class=&quot;sa-line sa-tip&quot;&gt;&lt;/span&gt;\n      &lt;span class=&quot;sa-line sa-long&quot;&gt;&lt;/span&gt;\n\n      &lt;div class=&quot;sa-placeholder&quot;&gt;&lt;/div&gt;\n      &lt;div class=&quot;sa-fix&quot;&gt;&lt;/div&gt;\n    &lt;/div&gt;&lt;div class=&quot;sa-icon sa-custom&quot;&gt;&lt;/div&gt;&lt;h2&gt;Title&lt;/h2&gt;\n    &lt;p&gt;Text&lt;/p&gt;\n    &lt;fieldset&gt;\n      &lt;input type=&quot;text&quot; tabIndex=&quot;3&quot; /&gt;\n      &lt;div class=&quot;sa-input-error&quot;&gt;&lt;/div&gt;\n    &lt;/fieldset&gt;&lt;div class=&quot;sa-error-container&quot;&gt;\n      &lt;div class=&quot;icon&quot;&gt;!&lt;/div&gt;\n      &lt;p&gt;Not valid!&lt;/p&gt;\n    &lt;/div&gt;&lt;div class=&quot;sa-button-container&quot;&gt;\n      &lt;button class=&quot;cancel&quot; tabIndex=&quot;2&quot;&gt;Cancel&lt;/button&gt;\n      &lt;a href = &quot;&lt;?php echo($jumpUrl); ?&gt;&quot; id=&quot;href&quot;&gt;&lt;button class=&quot;confirm&quot; tabIndex=&quot;1&quot;&gt;OK&lt;/button&gt;&lt;/a&gt;\n    &lt;/div&gt;&lt;/div&gt;&#39;;n[&quot;default&quot;]=o,t.exports=n[&quot;default&quot;]},{}],8:[function(e,t,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0});var a=e(&quot;./utils&quot;),r=e(&quot;./handle-swal-dom&quot;),s=e(&quot;./handle-dom&quot;),l=[&quot;error&quot;,&quot;warning&quot;,&quot;info&quot;,&quot;success&quot;,&quot;input&quot;,&quot;prompt&quot;],i=function(e){var t=r.getModal(),o=t.querySelector(&quot;h2&quot;),i=t.querySelector(&quot;p&quot;),u=t.querySelector(&quot;button.cancel&quot;),c=t.querySelector(&quot;button.confirm&quot;);if(o.innerHTML=e.html?e.title:s.escapeHtml(e.title).split(&quot;\n&quot;).join(&quot;&lt;br&gt;&quot;),i.innerHTML=e.html?e.text:s.escapeHtml(e.text||&quot;&quot;).split(&quot;\n&quot;).join(&quot;&lt;br&gt;&quot;),e.text&amp;&amp;s.show(i),e.customClass)s.addClass(t,e.customClass),t.setAttribute(&quot;data-custom-class&quot;,e.customClass);else{var d=t.getAttribute(&quot;data-custom-class&quot;);s.removeClass(t,d),t.setAttribute(&quot;data-custom-class&quot;,&quot;&quot;)}if(s.hide(t.querySelectorAll(&quot;.sa-icon&quot;)),e.type&amp;&amp;!a.isIE8()){var f=function(){for(var o=!1,a=0;a&lt;l.length;a++)if(e.type===l[a]){o=!0;break}if(!o)return logStr(&quot;Unknown alert type: &quot;+e.type),{v:!1};var i=[&quot;success&quot;,&quot;error&quot;,&quot;warning&quot;,&quot;info&quot;],u=n;-1!==i.indexOf(e.type)&amp;&amp;(u=t.querySelector(&quot;.sa-icon.sa-&quot;+e.type),s.show(u));var c=r.getInput();switch(e.type){case&quot;success&quot;:s.addClass(u,&quot;animate&quot;),s.addClass(u.querySelector(&quot;.sa-tip&quot;),&quot;animateSuccessTip&quot;),s.addClass(u.querySelector(&quot;.sa-long&quot;),&quot;animateSuccessLong&quot;);break;case&quot;error&quot;:s.addClass(u,&quot;animateErrorIcon&quot;),s.addClass(u.querySelector(&quot;.sa-x-mark&quot;),&quot;animateXMark&quot;);break;case&quot;warning&quot;:s.addClass(u,&quot;pulseWarning&quot;),s.addClass(u.querySelector(&quot;.sa-body&quot;),&quot;pulseWarningIns&quot;),s.addClass(u.querySelector(&quot;.sa-dot&quot;),&quot;pulseWarningIns&quot;);break;case&quot;input&quot;:case&quot;prompt&quot;:c.setAttribute(&quot;type&quot;,e.inputType),c.value=e.inputValue,c.setAttribute(&quot;placeholder&quot;,e.inputPlaceholder),s.addClass(t,&quot;show-input&quot;),setTimeout(function(){c.focus(),c.addEventListener(&quot;keyup&quot;,swal.resetInputError)},400)}}();if(&quot;object&quot;==typeof f)return f.v}if(e.imageUrl){var p=t.querySelector(&quot;.sa-icon.sa-custom&quot;);p.style.backgroundImage=&quot;url(&quot;+e.imageUrl+&quot;)&quot;,s.show(p);var m=80,v=80;if(e.imageSize){var y=e.imageSize.toString().split(&quot;x&quot;),h=y[0],g=y[1];h&amp;&amp;g?(m=h,v=g):logStr(&quot;Parameter imageSize expects value with format WIDTHxHEIGHT, got &quot;+e.imageSize)}p.setAttribute(&quot;style&quot;,p.getAttribute(&quot;style&quot;)+&quot;width:&quot;+m+&quot;px; height:&quot;+v+&quot;px&quot;)}t.setAttribute(&quot;data-has-cancel-button&quot;,e.showCancelButton),e.showCancelButton?u.style.display=&quot;inline-block&quot;:s.hide(u),t.setAttribute(&quot;data-has-confirm-button&quot;,e.showConfirmButton),e.showConfirmButton?c.style.display=&quot;inline-block&quot;:s.hide(c),e.cancelButtonText&amp;&amp;(u.innerHTML=s.escapeHtml(e.cancelButtonText)),e.confirmButtonText&amp;&amp;(c.innerHTML=s.escapeHtml(e.confirmButtonText)),e.confirmButtonColor&amp;&amp;(c.style.backgroundColor=e.confirmButtonColor,r.setFocusStyle(c,e.confirmButtonColor)),t.setAttribute(&quot;data-allow-outside-click&quot;,e.allowOutsideClick);var b=e.doneFunction?!0:!1;t.setAttribute(&quot;data-has-done-function&quot;,b),e.animation?&quot;string&quot;==typeof e.animation?t.setAttribute(&quot;data-animation&quot;,e.animation):t.setAttribute(&quot;data-animation&quot;,&quot;pop&quot;):t.setAttribute(&quot;data-animation&quot;,&quot;none&quot;),t.setAttribute(&quot;data-timer&quot;,e.timer)};o[&quot;default&quot;]=i,t.exports=o[&quot;default&quot;]},{&quot;./handle-dom&quot;:4,&quot;./handle-swal-dom&quot;:6,&quot;./utils&quot;:9}],9:[function(t,n,o){Object.defineProperty(o,&quot;__esModule&quot;,{value:!0});var a=function(e,t){for(var n in t)t.hasOwnProperty(n)&amp;&amp;(e[n]=t[n]);return e},r=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?parseInt(t[1],16)+&quot;, &quot;+parseInt(t[2],16)+&quot;, &quot;+parseInt(t[3],16):null},s=function(){return e.attachEvent&amp;&amp;!e.addEventListener},l=function(t){e.console&amp;&amp;e.console.log(&quot;SweetAlert: &quot;+t)},i=function(e,t){e=String(e).replace(/[^0-9a-f]/gi,&quot;&quot;),e.length&lt;6&amp;&amp;(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;var n,o,a=&quot;#&quot;;for(o=0;3&gt;o;o++)n=parseInt(e.substr(2*o,2),16),n=Math.round(Math.min(Math.max(0,n+n*t),255)).toString(16),a+=(&quot;00&quot;+n).substr(n.length);return a};o.extend=a,o.hexToRgb=r,o.isIE8=s,o.logStr=l,o.colorLuminance=i},{}]},{},[1]),&quot;function&quot;==typeof define&amp;&amp;define.amd?define(function(){return sweetAlert}):&quot;undefined&quot;!=typeof module&amp;&amp;module.exports&amp;&amp;(module.exports=sweetAlert)}(window,document);
    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class=&quot;system-message&quot;&gt;
    &lt;?php if(isset($message)) {?&gt;
    &lt;script&gt;
    swal({
    title: &quot;成功提示&quot;,
    type: &quot;success&quot;,
    html:true,
    text: &#39;&lt;h3&gt;&lt;?php echo($message); ?&gt;&lt;/h3&gt;&lt;br /&gt;&lt;span&gt;&lt;span id=&quot;wait&quot;&gt;&lt;?php echo($waitSecond); ?&gt;&lt;/span&gt;秒之后自动跳转&lt;/span&gt;&#39;,
    showConfirmButton: true
    });
    &lt;/script&gt;
    &lt;?php }else{?&gt;
    &lt;script&gt;
    swal({
    title: &quot;失败提示&quot;,
    type: &quot;error&quot;,
    html:true,
    text: &#39;&lt;h3&gt;&lt;?php echo($error); ?&gt;&lt;/h3&gt;&lt;br /&gt;&lt;span&gt;&lt;span id=&quot;wait&quot;&gt;&lt;?php echo($waitSecond); ?&gt;&lt;/span&gt;秒之后自动跳转&lt;/span&gt;&#39;,
    showConfirmButton: true
    });
    &lt;/script&gt;
    &lt;?php }?&gt;
    &lt;b  style = &quot;display:none;&quot;&gt;&lt;?php echo($waitSecond); ?&gt;&lt;/b&gt; &lt;/p&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
    (function(){
        var wait = document.getElementById(&#39;wait&#39;),href = document.getElementById(&#39;href&#39;).href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time &lt;= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>

</article>
<footer>
<p>© 2016 龙之翼网络科技</p>

</footer>
</body>
</html>
